package com.baizhi.service;

import com.baizhi.entity.OrderDetail;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * @author yystart
 * @create 2019-10-04 17:53
 */
public interface CartService {

    Map selectCart(HttpSession session);

    Map insert(HttpSession session, Integer productId);

    OrderDetail selectOne(HttpSession session, Integer productId);

    Map update(HttpSession session, Integer productId, Integer quantity);

    Map delete(HttpSession session, Integer productId);
}
